package com.yhy.wxzn.wcs.mapper;


import com.yhy.wxzn.wcs.entity.WcsFourWayTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 四向车任务表
 * @Author: jeecg-boot
 * @Date:   2023-11-08
 * @Version: V1.0
 */
public interface WcsFourWayTaskMapper extends BaseMapper<WcsFourWayTask> {

    WcsFourWayTask getFirstCanExecuteTask(@Param("id") Integer id,@Param("taskStatus1") int taskStatus1,@Param("taskStatus2") int taskStatus2,@Param("rgvProgress") int rgvProgress);


    void assignTask(@Param("taskNo") Integer taskNo, @Param("id") Integer id);

    boolean updateRgvProgress(@Param("id")Integer id,@Param("rgvProgress")Integer rgvProgress);

    boolean updateTaskStatus(@Param("id")Integer id,@Param("taskStatus") int taskStatus);
}
